import { GET, POST, PUT, DELETE } from '@/utils'

export class PlayBookApi {
  static queryAPPList(params) {
    // return GET({ url: '/api/xbot/integrations/', params })
    return GET({ url: '/api/xbot/soar/integrations/', params })
  }
  static createInstance(data) {
    return POST({ url: '/api/xbot/instances/', data })
  }
  static updateInstance(data) {
    return PUT({ url: '/api/xbot/instances/', data })
  }
  static createPlay(data) {
    return POST({
      url: '/api/playbook/workflows/',
      data
    })
  }
  static updatePlay(data) {
    return PUT({
      url: '/api/playbook/workflows/',
      data
    })
  }
  static deletePlay(data) {
    return DELETE({
      url: '/api/playbook/workflows/',
      data
    })
  }
  static queryPlayList(params) {
    return GET({ url: '/api/playbook/workflows/', params })
  }
}
